{% extends extends_template %}

{% block title %}
 Account - {{account.name}}
{% endblock %}

{% block location %}
<div class="nav"><a href="{% url accounts %}">Accounts</a></div>
<div class="nav"><a href="{% url account_details account_id=account.id %}">{{account.name}}</a></div>
{% endblock %}

{% block content %}
    <table id="account_details_table" class="info">
        <tr>
            <td>Account name</td>
            <td>{{account.name}}</td>
        </tr>
        <tr>
            <td>Account number</td>
            <td>{{account.number}}</td>
        </tr>
        <tr>
            <td>Account type</td>
            <td>{{account.get_account_type_display}}</td>
        </tr>
        <tr>
            <td>Account balance</td>
            <td>{{account.balance}}</td>
        </tr>
    </table>
{% endblock %}

{% block menu %}
    <div><a href="{% url account_new_payment account_id=account.id %}"><b>New payment</b> from this account</a></div>
    <div><a href="{% url transfer %}">Transfer money between own accounts</a></div>
    <div><a href="{% url list_account_payments account_id=account.id %}"><b>Account history</b></a></div>
    <div><a href="{% url list_account_payments_to_from detail='from' account_id=account.id %}">Account history from</a></div>
    <div><a href="{% url list_account_payments_to_from detail='to' account_id=account.id %}">Account history to</a></div>
    <div><a href="{% url list_account_cards account_id=account.id %}">Cards on this account</a></div>
    
{% endblock %}
